<?php
$fileName = $_POST['hi'];

echo $fileName;

$myfile = fopen("$fileName", "r") or die("Unable to open file!");
// 输出单行直到 end-of-file
while(!feof($myfile)) {
  echo fgets($myfile) . "<br>";
}
fclose($myfile);
?>